<div id="inner">
        <div class="wrap">
            <div id="main">
                <div id="content" class="questions entry">
                    <h1 class="entry-title">Questions & Answers</h1>

                    <div id="question-serch" class="clearfix">
                        <form class="search-question" action="<?php echo base_url();?>search" method="post">
                            <input type="text" name="question" class="s" value="Search your question..." onfocus="if (this.value == 'Search your question...') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Search your question...';}" />
                            <input type="submit" class="s-submit submit" value="Search">
                        </form>

                        <span>or</span>
                        <a href="<?php echo base_url();?>questions-and-answers/#make-question" class="make-question submit">Ask your question</a>
                    </div><!-- end #question-search -->

                    <div class="question entry-content">
                    	<?php if(count($results_list[0])>0){?>
                    		<?php foreach($results_list as $k => $v){?>
		                        <h3>
		                            <span>Question: </span>
		                            <a href="<?php echo base_url().'answer/'.ascii_link($v->brief);?>"><?php echo $v->brief;?></a>
		                        </h3>
		                        <p><?php echo $v->detail;?></p>
		                        <p style="color:#888;">Asked by <span style="color: green; font-weight: bold;"><?php echo $v->sender;?></span>, <?php echo get_num_time($v->time)?></p>
		                        <p class="answer-link"><a href="<?php echo base_url().'answer/'.ascii_link($v->brief);?>" class="more-link">Answer</a></p>
	                        <?php }?>
                        <?php } else{echo '<p style="font-size:25px; font-weight: bold; color: green;">No results match with <span style="color: #147cc0;">'.$keyword.'</span></p>';}?>
                    </div><!-- end .question -->  
                </div><!-- end #content -->
            </div><!-- end #main -->